package cn.youqu.happy.module.member.controller.admin.user.vo;

import lombok.*;
import java.util.*;
import io.swagger.annotations.*;

import com.alibaba.excel.annotation.ExcelProperty;
import cn.youqu.happy.framework.excel.core.annotations.DictFormat;
import cn.youqu.happy.framework.excel.core.convert.DictConvert;


/**
 * 用户 Excel VO
 *
 * @author 王其岩 20112001045
 */
@Data
public class UserExcelVO {

    @ExcelProperty("编号")
    private Long id;

    @ExcelProperty("用户昵称")
    private String nickname;

    @ExcelProperty("头像")
    private String avatar;

    @ExcelProperty(value = "状态", converter = DictConvert.class)
    @DictFormat("common_status") // TODO 代码优化：建议设置到对应的 XXXDictTypeConstants 枚举类中
    private Integer status;

    @ExcelProperty("手机号")
    private String mobile;

    @ExcelProperty("最后登录IP")
    private String loginIp;

    @ExcelProperty("最后登录时间")
    private Date loginDate;

    @ExcelProperty("创建时间")
    private Date createTime;

}
